class Adder(object):
    def __init__(self, value = 0):
        self.data = value
    def __call__(self, x):
        return self.data + x

add = Adder()
print(add(1))
print(add(2))